<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>修改员工</title>
    <link type="text/css" rel="stylesheet" href="fontsawesome/css/font-awesome.css"/>
    <link type="text/css" rel="stylesheet" href="css/style.css"/>
</head>
<body>
<div class="main_box">
    <h2><span></span>修改员工</h2>
    <div class="cont_box">
        <form action="${pageContext.request.contextPath}/updateStaff" method="post" id="addstaff_form">
            <ul class="addpro_box">
                <li>
                    <label></label>
                    <input type="hidden" value="${staff.staff_id}" name="staff_id" />
                </li>
                <li>
                    <label>姓名：</label>
                    <input type="text" placeholder="请输员工姓名" value="${staff.s_name}" name="s_name" required data-rule-fullname="true" data-msg-required="员工姓名不能为空"/>
                </li>
                <li>
                    <label>手机号：</label>
                    <input type="text" placeholder="请输入手机号" value="${staff.phone}" name="phone" required data-rule-mobile="true" data-msg-required="手机号不能为空"/>
                </li>
                <li>
                    <label>性别：</label>
                    <select name="s_sex">
                        <c:if test="${staff.s_sex == '0'}"><option value="0">女</option><option value="1">男</option></c:if>
                        <c:if test="${staff.s_sex == '1'}"><option value="1">男</option><option value="0">女</option></c:if>
                    </select>
<%--<c:if test="${staff.s_sex.equals('1')}">--%>
<%--    <div class="radio_box">--%>
<%--        <i class="fa fa-circle-thin fa-1x"></i>--%>
<%--        <input type="radio" name="s_sex" class="input_radio" required data-msg-required="性别不能为空"  value="1" checked/>男--%>
<%--    </div>--%>

<%--    <div class="radio_box">--%>
<%--        <i class="fa fa-circle-thin fa-1x"></i>--%>
<%--        <input type="radio" name="s_sex" class="input_radio"  value="0"/>女--%>
<%--    </div>--%>
<%--</c:if>--%>
<%--                    <c:if test="${staff.s_sex.equals('0')}">--%>
<%--                        <div class="radio_box">--%>
<%--                            <i class="fa fa-circle-thin fa-1x"></i>--%>
<%--                            <input type="radio" name="s_sex" class="input_radio"   value="1"/>男--%>
<%--                        </div>--%>

<%--                        <div class="radio_box">--%>
<%--                            <i class="fa fa-circle-thin fa-1x"></i>--%>
<%--                            <input type="radio" name="s_sex" class="input_radio" required data-msg-required="性别不能为空"  value="0" checked/>女--%>
<%--                        </div>--%>
<%--                    </c:if>--%>


                </li>
                <li>
                    <label>岗位：</label>
                    <select name="post" required data-msg-required="所属岗位不能为空">
                        <option value="${staff.post}">
                            <c:if test="${staff.post == '1'}">店长</c:if>
                            <c:if test="${staff.post == '2'}">施工</c:if>
                            <c:if test="${staff.post == '3'}">销售</c:if>
                        </option>
                        <option value="1">店长</option>
                        <option value="2">财务</option>
                        <option value="3">销售</option>
                        </select>
                </li>
                <li>
                    <label>是否在岗：</label>
                    <select name="state">
                        <c:if test="${staff.state == '0'}">
                            <option value="0">离职</option>
                            <option value="1">在岗</option>
                        </c:if>
                        <c:if test="${staff.state == '1'}">
                            <option value="1">在岗</option>
                            <option value="0">离职</option>
                        </c:if>

                    </select>
                </li>
            </ul>
            <div class="probtn_box clearfix">
                <input type="submit" value="修改员工" class="btn blue_btn"/>
            </div>
        </form>
    </div>
</div>
<!--javascript include-->
<script src="js/jquery-2.2.1.min.js"></script>
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/bootstrap-datepicker.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/jquery.form.min.js"></script>
<script src="js/other.js"></script>
<script>
    $(function(){
        $("body").other({formId:"#addstaff_form",formUrl:"#"});//formUrl 表单请求地址
    });
</script>
</body>
</html>
